package com.pjc.model.chat;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * 传递消息实体类
 * 
 * @author 王畅
 * @version 创建时间：2015-6-16 上午09:13:07
 */
public class ChatMsg {

	/**
	 * 消息ID
	 */
	private int msgID;

	/**
	 * 发送用户对象
	 */
	private JSONObject fromUser;
	/**
	 * 接收用户对象
	 */
	private String toUserID;

	/**
	 * 类型
	 */
	private int type;
	/**
	 * 消息BODY
	 */
	private JSONObject data;

	/**
	 * 离线消息
	 */
	private JSONArray offlineData;

	/**
	 * 发送时间
	 */
	private long time;

	public int getMsgID() {
		return msgID;
	}

	public void setMsgID(int msgID) {
		this.msgID = msgID;
	}

	public JSONObject getFromUser() {
		return fromUser;
	}

	public void setFromUser(JSONObject fromUser) {
		this.fromUser = fromUser;
	}

	public String getToUserID() {
		return toUserID;
	}

	public void setToUserID(String toUserID) {
		this.toUserID = toUserID;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public JSONObject getData() {
		return data;
	}

	public void setData(JSONObject data) {
		this.data = data;
	}

	public JSONArray getOfflineData() {
		return offlineData;
	}

	public void setOfflineData(JSONArray offlineData) {
		this.offlineData = offlineData;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getAppID() {
		return appID;
	}

	public void setAppID(String appID) {
		this.appID = appID;
	}

	/**
	 * Ӧ��ID
	 */
	private String appID;

}
